package com.yami.shop.combo.api.listener;


import com.yami.shop.bean.event.SubmitOrderEvent;
import com.yami.shop.bean.order.SubmitOrderOrder;
import lombok.AllArgsConstructor;
import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component("comboSubmitOrderNftListener")
@AllArgsConstructor
public class SubmitOrderNftListener {

    @EventListener(SubmitOrderEvent.class)
    @Order(SubmitOrderOrder.NFT)
    public void comboSubmitOrderNftListener(SubmitOrderEvent event) {
        String userId = event.getMergerOrder().getUserId();

    }
}

